package com.cmc.cloud.cmclink.doc.api.document.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;


/**
 * 长期保函查询 Request VO
 *
 * @author zangfengyun
 */
@Schema(description = "管理后台 - 查询长期保函 Request VO")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class GuaranteeLetterQueryReqDto {

    @Schema(description = "订舱人代码")
    @NotEmpty(message = "订舱人代码不能为空")
    private List<String> bkpCodes;

    @Schema(description = "查询时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date queryTime;

}